package com.bw.zcb.mvp.presenter;

import com.bw.zcb.R;
import com.bw.zcb.mvp.base.model.BaseEntity;
import com.bw.zcb.mvp.base.presenter.BasePresenter;
import com.bw.zcb.mvp.contract.UserContract;
import com.bw.zcb.mvp.model.entity.UserItemEntity;
import com.bw.zcb.mvp.model.entity.UserMenuEntity;

import java.util.ArrayList;
import java.util.List;

import javax.inject.Inject;

public class UserPresenter extends BasePresenter<UserContract.IUserModel,UserContract.IUserView> {
    @Inject
    public UserPresenter(UserContract.IUserModel iUserModel, UserContract.IUserView iUserView) {
        super(iUserModel, iUserView);
    }
    //初始化数据方法
    public void initData(){
        List<UserMenuEntity> meneus = new ArrayList<>();
        meneus.add(new UserMenuEntity(R.drawable.res_icon7_274,"消息",null));
        meneus.add(new UserMenuEntity(R.drawable.res_icon7_275,"收藏",null));
        meneus.add(new UserMenuEntity(R.drawable.res_icon7_276,"评论",null));
        meneus.add(new UserMenuEntity(R.drawable.res_icon7_276,"历史",null));
        meneus.add(new UserMenuEntity(R.drawable.res_icon7_278,"关注",null));
        meneus.add(new UserMenuEntity(R.drawable.res_icon7_279,"下载",null));
        meneus.add(new UserMenuEntity(R.drawable.res_icon7_280,"公益",null));
        meneus.add(new UserMenuEntity(R.drawable.res_icon7_281,"问政",null));
        v.refreshMenu(meneus);
        List<UserItemEntity> items = new ArrayList<>();
        items.add(new UserItemEntity("积分商城",null));
        items.add(new UserItemEntity("夜间模式",null));
        items.add(new UserItemEntity("意见反馈",null));
        items.add(new UserItemEntity("更多设置",null));
        v.refreshItems(items);
    }
    @Override
    public void onNext(BaseEntity baseEntity) {

    }
}
